package com.dq.controller.index;

import com.dq.controller.vo.Server;
import com.dq.vo.Vo;
import com.dq.service.AllService;
import io.swagger.annotations.Api;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author heshuaijun
 * @date 2019/9/1821:29
 */
@Api(description = "后台页面管理")
@RestController
@RequestMapping("/sys/index")
public class IndexController extends AllService {
    @GetMapping(value = "/server")
    public Vo server() throws Exception {
        Server server = new Server();
        server.copyTo();
        return new Vo(server);
    }


}